#include "StompedReality/Core/TypeSystem/TypeField.h"
#include "StompedReality/Core/TypeSystem/TypeSystem.h"
#include <sstream>
namespace StompedReality
{
namespace type_system
{
std::string TypeField::to_s( )
{
  TypeInfo* info = TypeSystem::GetTypeByID( type );
  std::stringstream stream;
  stream << name << ", Type: ";
  if ( info )
    stream << info->name << ", size: " << info->size;
  else
    stream << "???, size: ??";
  stream << ", offset : " << offset << ", list: " << this->list;

  //stream << info->to_s();
  return stream.str( );
}

}
}
